import request from "../request"
//巡检方案列表查询
export function getPatrolQuery(data){
  return request({
    url: "/car/patrol/v/plan/query",
    method: "post",
    data,
  });
}
//方案详情
export function getPatrolQueryInfo(data){
  return request({
    url: "/car/patrol/v/plan/queryInfo",
    method:'post',
    data,
  });
}
//任务删除
export function getPatrolDelete(data){
  return request({
    url: "/car/patrol/v/plan/delet",
    method:'POST',
    data:data,
  });
}
// 方案修改
export function getPatrolUpt(data){
  return request({
    url: "/car/patrol/v/plan/upt",
    method:'POST',
    data:data,
  });
}
//新增方案
export function getPlanAdd(data){
  return request({
    url: "/car/patrol/v/plan/add",
    method:'POST',
    data:data,
  });
}
//实时监控左侧
export function getPatrolInfo(data){
  return request({
    url: "/car/patrol/v/task/query/info",
    method:'post',
    data,
  });
}
//获取巡检摄像头列表
export function getPatrolCameraList(data){
  return request({
    url: "/car/patrol/v/video/query/cameraList",
    method:'get',
    params:data,
  });
}
//确认执行
export function getPatrolReport(data){
  return request({
    url: "/car/patrol/v/task/report/add",
    method:'post',
    data:data,
  });
}
//查看巡检报告
export function getPatrolConfirm(data){
  return request({
    url: "/car/patrol/v/task/report/confirm",
    method:'post',
    data,
  });
}
//选择告警作业项列表
export function getPatrolAssign(data){
  return request({
    url: "/car/patrol/v/task/record/assign",
    method:'post',
    data,
  });
}

//添加巡检记录内容
export function getRecordAdd(data){
  return request({
    url: "/car/patrol/v/task/record/add",
    method:'POST',
    data:data,
  });
}
//http://127.0.0.1:8081/car/patrol/v/screenshot/upload
export function getPlanRecord(data){
  return request({
    url: "/car/patrol/v/task/query/record",
    method: "post",
    data,
  });
}
